﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/pcview2016edit2.master" AutoEventWireup="true" CodeFile="showfile.aspx.cs" Inherits="Gupload_showfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head00" Runat="Server">
 <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no,minimal-ui" />
   
        <style type="text/css">
    #galleria{ width: 100%;  background: #000;  }
    body{background:none; overflow:hidden}

</style>  
   
	<script type="text/javascript" src="swfobject.js"></script>    
		<script type="text/javascript">
		    var updanhao=encodeURIComponent(getUrlString("tid", "0")); var rrid=Math.random();	   
		    var flashDbUrl = stringFormat("showfile.aspx?lb=1&type=getpcimg&tid={0}&cocode={1}&rrid={2}", updanhao,getUrlString("cocode", "0"), rrid);
		    function flashView(flashHeight) {
		        $.post(flashDbUrl,{'fjfl':$('#fjfl0').val()}, function (d) {
		            if (d.length > 10) {
		                var serverImgdb = encodeURIComponent(flashDbUrl);
		                var flashvars = {
		                    serverUrl: serverImgdb,
		                    stayTime: 6
		                };
		                var parames = {
		                    menu: false,
		                    quality: "high",
		                    allowfullscreen: true,
		                    wmode: "transparent"
		                };
		                swfobject.embedSWF("photoView.swf", "mydiv", "900", flashHeight, "9.0.0", "expressInstall.swf", flashvars, parames);
		            } else { $('#mydiv').html('<div style="padding:8px;color:#0078D7">没有图片数据！</div>'); }
		        })
		      
		    }
		    $(function () {		       
		        var nowWh = $(window).height();
		      //  $.FormDo2015.mxTableAutodo('.db_ediv0,.autoform2');
		        if (!isMobile()) {
		            $('#showtabs2,.bi_tbody00').remove();
		            function setVh() { $('#showtabs').css({'height':$(window).height()-76}) }
		            setTrorder($('#table8 tbody'), "排序", "val"); 
		            $('#up2016').html(stringFormat("<iframe id='showup00' style='border:none; height:{5}px;min-width:97%' src='../jup2016/up.aspx?showview=0&updanhao={0}&rrid={1}&cocode={2}&apicode={3}&uname={4}&maxw={6}&maxh={7}'></iframe>", updanhao, rrid, getUrlString("cocode", ""), getUrlString("apicode", ""), getUrlString("uname", ""), nowWh - 96,getUrlString("maxw", "1600"),getUrlString("maxh", "1280")));
		            $('#fjfl0').change(function () { var windowH = nowWh - 76; flashView(windowH); });

		            $(window).bind('ready resize',function () {		              
		                
		                if ($('#table8').length < 1) { $('.bottomsave').hide() }
		                setVh(); flashView($(window).height() - 78);
		              
		            });
		            var imgnum = parseInt($('#imgnum').text()), othernum = parseInt($('#othernum').text());
		            if (imgnum > 0) { $('#imgdiv').show(); } else { $('#imgdiv').hide(); }; 		          
		            function showday() { WdatePicker(); }; function only01() { this.value = this.value.replace(/[^01]/g, '') };          
		         
		          
		        }
		        else {
		           
		            $('#flashshow,.bi_tbody00').remove(); $('#showtabs2').css({ 'height': nowWh - 36 });
		            $('#up2016b').html(stringFormat("<iframe id='showup00' style='border:none; height:{5}px;width:97%' src='../jup2016/up.aspx?showview=0&updanhao={0}&rrid={1}&cocode={2}&apicode={3}&uname={4}&maxw={6}&maxh={7}'></iframe>", updanhao, rrid, getUrlString("cocode", ""), getUrlString("apicode", ""), getUrlString("uname", ""), nowWh - 46, getUrlString("maxw", "1600"), getUrlString("maxh", "1280")));
		            $(window).on('ready resize', function () {
		                $('.img_showdiv').css({ 'height': $(window).height() - 48, 'overflow-y': 'auto' });
		                imgViewer2($('.imgmain'), '.img_show', $('#img_data').val(), 0);
		            })
		         
		        }

		    })
		</script>
     <script src="../js2015c/jquanju2016.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="neirong00" Runat="Server">
    <div>
<div id="flashshow">
<div class="top1 e_top00">
<div style="padding:4px">单据附件概况 》<asp:Literal ID="showfjzy" runat="server"></asp:Literal>  
    <input id="Button1" type="button" value="刷新页面" onclick="history.go(0)" /></div></div>
 <div id="showtabs" class="show_tab">
<div id="imgdiv" class="center"  style="width:100%;background-color:Black;" vartab="图片附件">
<div id="mydiv" style="overflow:hidden"></div>
</div>
<div id="filediv" class="center" style="display:none" vartab="文件附件">

    <asp:Literal ID="showother" runat="server"></asp:Literal>
</div>
 
<div  vartab="附件编辑"  >
    <div id="fileedit" class="autoform2">
    <asp:Literal ID="showtable" runat="server"></asp:Literal>

    </div>

    
</div>
<div id="up2016" vartab="增量上传">
</div>
</div>
</div>
</div>
      <div id="showtabs2" class="show_tab">

          <div vartab="图片展示">
           <div>
           <asp:Literal ID="jsimg" runat="server"></asp:Literal></div>
          </div>
          <div  class="center" vartab="附件下载">

    <asp:Literal ID="showother2" runat="server"></asp:Literal>
</div>
           <div vartab="增量上传">
          <div id="up2016b" style="text-align:center; margin:2px auto"></div>

          </div>

      </div>
    
     <div><asp:Literal ID="hiddenVal" runat="server"></asp:Literal></div>
</asp:Content>

